import { baseRequest } from '@/common/axios'

const request = (url, ...arg) => baseRequest(`/api/Meteo/Typhoon/${url}`, ...arg)

export default {
	GetTyphoonYears(data) {
		return request('GetTyphoonYears', data, 'get')
	},
	GetTyphoonList(data) {
		return request('GetTyphoonList', data, 'get')
	},
	GetTyphoonPath(data) {
		return request('GetTyphoonPath', data, 'get')
	},
	GetTyphoonWindInfo(data) {
		return request('GetTyphoonWindInfo', data, 'get')
	},
	GetTyphoonAlertsData(data) {
		return request('GetTyphoonAlertsData', data, 'get')
	},
	GetTyphoonTableList(data) {
		return request('GetTyphoonTableList', data, 'get')
	}
}
